package com.salemanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.three.core.entity.UserBalance;
import com.three.core.entity.UserBalanceLog;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* @author liuliyuan
* @description 针对表【tb_user_balance(余额)】的数据库操作Mapper
* @createDate 2025-03-20 08:56:31
* @Entity com.lly.entity.UserBalance
*/
@Mapper
public interface UserBalanceMapper extends BaseMapper<UserBalance> {

    UserBalance selectByUserIdAndStoreId(Integer userId, Integer storeId);

    int updateBalance(Long userId, BigDecimal accountMoney, Long storeId);

}
